<<<<<<< HEAD
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<pre>
    import time


class Person:
    def __init__(self, name, age):
        self.name = name
        self.age = age

    def speak(self):
        print(self.name + " is " + self.age + " years old!")


class Student(Person):
    def __init__(self, name, age, school, my_id):
        Person.__init__(self, name, age)
        self.school = school
        self.my_id = my_id

    def speak(self):
        print("name:" + self.name + "age:" + self.age + "school:" + self.school + "my_id:" + self.my_id)

    def run(self):
        v = input("input v: ")
        times = input("input times: ")
        d = float(v) * float(times)
        print(self.name + "'s runing distance is " + str(d))


class CollegeStudent(Student):
    def __init__(self, name, age, school, my_id, language):
        Student.__init__(self, name, age, school, my_id)
        self.language = language

    def speak(self):
        print(
            "name: " + self.name + "age: " + self.age + "school: " + self.school + "my_id: " + self.my_id + "language: " + self.language)

    def coding(self):
        print("I am coding" ,end = '')
        for i in range(10):
            print(".", end='')
            time.sleep(1)


p = Person('bob', '18')
p.speak()
s = Student('bob', '18', 'pk', '0923')
s.speak()
'''s.run()'''
c = CollegeStudent('bob', '19', 'dc', '0922', 'English')
c.speak()
c.coding()


</pre>

</body>
=======
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<pre>
    import time


class Person:
    def __init__(self, name, age):
        self.name = name
        self.age = age

    def speak(self):
        print(self.name + " is " + self.age + " years old!")


class Student(Person):
    def __init__(self, name, age, school, my_id):
        Person.__init__(self, name, age)
        self.school = school
        self.my_id = my_id

    def speak(self):
        print("name:" + self.name + "age:" + self.age + "school:" + self.school + "my_id:" + self.my_id)

    def run(self):
        v = input("input v: ")
        times = input("input times: ")
        d = float(v) * float(times)
        print(self.name + "'s runing distance is " + str(d))


class CollegeStudent(Student):
    def __init__(self, name, age, school, my_id, language):
        Student.__init__(self, name, age, school, my_id)
        self.language = language

    def speak(self):
        print(
            "name: " + self.name + "age: " + self.age + "school: " + self.school + "my_id: " + self.my_id + "language: " + self.language)

    def coding(self):
        print("I am coding" ,end = '')
        for i in range(10):
            print(".", end='')
            time.sleep(1)


p = Person('bob', '18')
p.speak()
s = Student('bob', '18', 'pk', '0923')
s.speak()
'''s.run()'''
c = CollegeStudent('bob', '19', 'dc', '0922', 'English')
c.speak()
c.coding()


</pre>

</body>
>>>>>>> 9a96739ebc8de02f80df5e63bf92e475ebc8e662
</html>